package view.renderer;

import java.awt.Color;
import java.awt.Graphics;

import data.input.Cursor;

public class CursorRenderer extends Renderer{
	
	private Cursor cursor;
	private int tileSize;
	
	public CursorRenderer(Cursor cursor, int tileSize){
		this.cursor = cursor;
		this.tileSize = tileSize;
	}

	@Override
	public void render(Graphics g) {
		g.setColor(new Color(250, 250, 250));
		g.drawLine(tileSize*cursor.x, tileSize*cursor.y, tileSize*cursor.x + tileSize, tileSize*cursor.y);
		g.drawLine(tileSize*cursor.x + tileSize, tileSize*cursor.y, tileSize*cursor.x + tileSize, tileSize*cursor.y + tileSize);
		g.drawLine(tileSize*cursor.x + tileSize, tileSize*cursor.y + tileSize, tileSize*cursor.x, tileSize*cursor.y + tileSize);
		g.drawLine(tileSize*cursor.x, tileSize*cursor.y + tileSize, tileSize*cursor.x, tileSize*cursor.y);
		
	}

}
